package com.demo;

public class AccountingSync {

    public void f() {
        Object hellis = new Object();
        synchronized(hellis) {
            System.out.println(hellis);
        }
    }


    public static void main(String[] args) throws InterruptedException {
        Object o = new Object();
        synchronized (o) {

        }
    }
}
